package com.blue.firecat.dao;

import com.blue.firecat.entity.Trade;
import com.blue.firecat.entity.TradeExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface TradeDao {
    long countByExample(TradeExample example);

    int deleteByExample(TradeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Trade record);

    int insertSelective(Trade record);

    List<Trade> selectByExample(TradeExample example);

    Trade selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Trade record, @Param("example") TradeExample example);

    int updateByExample(@Param("record") Trade record, @Param("example") TradeExample example);

    int updateByPrimaryKeySelective(Trade record);

    int updateByPrimaryKey(Trade record);

    String getPics(Long tradeId);

    int addPics(@Param("photo")String fileNameNew, @Param("tradeId")Long tradeId);

    BigDecimal selectMoneyByExample(TradeExample example);

    BigDecimal selectMoneyByExample2(TradeExample example);
}